CC = cc

CFLAGS = -g
# 定义输出目录变量
BUILD_DIR = build

LDFLAGS = -lpthread

INC = -I Log \
            -I Log/inc  \
            -I MessageQueue \
            -I MessageQueue/inc \
            -I MessageDispatcher/inc

SRCS =  $(wildcard  Log/src/*.c)  \
                $(wildcard  MessageQueue/src/*.c)  \
                $(wildcard  MessageDispatcher/src/*.c)  \
                TelDemo.c

OBJS = $(SRCS:.c=.o)

all: Demo
	@echo "Build completed"

rebuild: clean all

clean:
	rm -f $(OBJS) 

Demo: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o Demo

%.o: %.c
	$(CC) $(CFLAGS) -c $(INC) $< -o $@
